<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    

    *{
      margin: 0;
      padding: 0;
    }

    .box {
      width: 600px;
      height: 600px;
      border-left: 1px solid #333;
      border-bottom: 1px solid #333;
      display: flex;
      flex-wrap: wrap;
      margin: 100px auto;
      position: relative;
    }

    .item {
      width: 200px;
      height: 200px;
      border-top: 1px solid #333;
      border-right: 1px solid #333;
      box-sizing: border-box;
      display: flex;
      justify-content: center;
      align-items: center;
    }


    .movingBox {
      position: absolute;
      top: 225px;
      left: 225px;
      animation-name: moveImg;
      animation-duration: 4s;
      animation-iteration-count: infinite;
    }
    
    @keyframes moveImg {
      0% {
        transform: translate(0,0);
      }
      25% {
        transform: translate(-200px,0);
      }
      50% {
        transform: translate(-200px,200px);
      }
      75% {
        transform: translate(0,200px);
      }
      100% {
        transform: translate(0,0);
      }
    }
    

    
  </style>
</head>
<body>
  <div class="box">
    <div class="item">(-300,-300)</div>
    <div class="item">(0,-300)</div>
    <div class="item">(300,-300)</div>
    <div class="item item2">(-300,0)</div>
    <div class="item item1">(0,0)</div>
    <div class="item ">(300,0)</div>
    <div class="item item3">(-300,300)</div>
    <div class="item">(0,300)</div>
    <div class="item">(300,300)</div>
    <div class="movingBox">
      <img style="width:150px;height:150px;" src="../images/10.png" alt="">
    </div>
  </div>
</body>
</html>